package com.baixun.gassystem.mapper;

import com.baixun.gasentity.entity.SysDroneOperations;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * sys_drone_operations
 */
@Mapper
public interface SysDroneOperationsMapper extends BaseMapper<SysDroneOperations> {

    // 分页查询无人机操作记录
    IPage<SysDroneOperations> selectByStationAndTypeWithPagination(Page<SysDroneOperations> page,
                                                                   @Param("stationName") String stationName,
                                                                   @Param("alarmType") String alarmType);

    // 查询无人机操作记录，参数可选
    List<SysDroneOperations> selectByStationAndType(@Param("stationName") String stationName,
                                                    @Param("alarmType") String alarmType);
}

